<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\admin\validate;
use think\Validate;
/**
 * Description of Huashu
 *
 * @author HuangLuSen
 */
class Huashu extends Validate{
    //put your code here
    protected $rule = [
//        'state_id'  => 'require|unique:huashu',
        'state_id'  => 'require',
        'name' => 'require',
        'sort' => 'require|number'
    ];

    protected $message = [
        'state_id.require'  => '请选择所属分类',
//        'state_id.unique'  => '该状态的话术已存在请直接修改',
        'name.require' => '请输入名称',
        'sort.require' => '请输入排序',
        'sort.number'  => '排序只能填写数字'
    ];
}
